import Vue from 'vue'

import vuex from 'vuex'
Vue.use(vuex)
//创建actions
 const actions={

 }
 //创建mutations
const mutations={
    INCREMENT(state,value){
        return state.sum+=value
    }
}
const getters={
    bigSum(state){
        return state.sum*100
    }
}
//创建state
const state={
    sum:10
}
//创建store
const store=new vuex.Store({
    actions,
    mutations,
    state,
    getters
})
export default store